package com.scau.XFourPOS.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 类名称：Customer
 * 类描述：客户的model
 * 创建人：庄祥鹏
 * */
@Entity
@Table(name = "customer")
public class Customer {
	/**
	 * 用户id
	 */
	@Id
	@Column(name = "customer_id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int customerId;
	/**
	 * 用户编号
	 */
	@Column(name = "customer_NO", length=36,unique = true, nullable = false)
	private String customerNO;
	/**
	 * 用户姓名
	 */
	@Column(name = "customer_name", length=36)
	private String customerName;
	/**
	 * 用户电话
	 */
	@Column(name = "customer_phone", length=36)
	private String customerPhone;
	/**
	 * 用户邮件
	 */
	@Column(name = "customer_Email", length=36)
	private String customerEmail;
	/**
	 * 用户地址
	 */
	@Column(name = "customer_addr", length=106)
	private String customerAddr;
	/**
	 * getter and setter
	 */
	public int getCustomerId() {
		return customerId;
	}
	public void setCustomerId(int customerId) {
		this.customerId = customerId;
	}
	public String getCustomerNO() {
		return customerNO;
	}
	public void setCustomerNO(String customerNO) {
		this.customerNO = customerNO;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getCustomerPhone() {
		return customerPhone;
	}
	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}
	public String getCustomerEmail() {
		return customerEmail;
	}
	public void setCustomerEmail(String customerEmail) {
		this.customerEmail = customerEmail;
	}
	public String getCustomerAddr() {
		return customerAddr;
	}
	public void setCustomerAddr(String customerAddr) {
		this.customerAddr = customerAddr;
	}
}
